package com.ruoyi.bizsys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 溢出金额对象 loan_overflow
 *
 * @author african-loan
 * @date 2022-01-13
 */

@Data
public class LoanOverflow extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @Excel(name = "ID", readConverterExp = "序号")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 客户号
     */
    @Excel(name = "客户号")
    private String custNo;

    /**
     * 变动金额
     */
    @Excel(name = "变动金额")
    private BigDecimal changeAmount;


    /**
     * 溢缴时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "溢缴时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date overflowTime;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 变动类型
     */
    @Excel(name = "变动类型")
    private Integer changeType;

    /**
     * 账户号
     */
    @Excel(name = "账户号")
    private String accountReference;

    /**
     * monnify订单号
     */
    @Excel(name = "monnify订单号")
    private String transactionReference;

    /**
     * monnify订单id
     */
    @Excel(name = "monnify订单id")
    private Long monnifyOrderId;

    /**
     * 还款no
     */
    @Excel(name = "还款no")
    private String repaymentOrderNo;

    /**
     * 借据no
     */
    @Excel(name = "借据no")
    private String loanIouNo;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String state;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @Excel(name = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}